package com.wy.util;

/**
 * 常量类
 * @author WY
 *
 */
public final class Constant {
	
	/**
	 * 登录页面相对路径
	 */
	public static final String LOGIN_PAGE_PATH = "/login.jsp";
	/**
	 * 首页相对路径
	 */
	public static final String HOME_PAGE_PATH = "/jsp/home.jsp";
	/**
	 * home action
	 */
	public static final String HOME = "/home";
	/**
	 * 用户session的key值
	 */
	public static final String USER_SESSION_KEY = "user";
	/**
	 * 是否保存用户密码标签:1-记住密码；0-不记住密码
	 */
	public static final String USER_REMENBER_TAG = "1";
	public static final String USER_NOTREMENBER_TAG = "0";
	/**
	 * 用户名Cookie/用户密码Cookie/用户Cookie存活时间(秒)
	 */
	public static final String USER_COOKIE_USERNAME = "username";
	public static final String USER_COOKIE_PASSWORD = "password";
	public static final int USER_COOKIE_MAXAGE = 60;
	
	/**
	 * 权限不足标识(用于action中定义全局结果)
	 */
	public static final String AUTHORITY_NOT_INSUFFICIENT = "authority_not_insufficient";
	/**
	 * 提示页面-权限验证失败
	 */
	public static final String NO_SUCH_AUTHORITY = "/jsp/warning/noSuchAuthority.jsp";
	
	
	/***************************小说****************************/
	/**
	 * 小说章节XML
	 */
	public static final String BOOK_CHAPTER_XML_BASEDIR = "book/chapterxml/";
	public static final String BOOK_CHAPTER_XML_VERSION = "1.0";		//XML版本
	public static final String BOOK_CHAPTER_XML_ROOT = "root";			//根元素
	public static final String BOOK_CHAPTER_XML_CHAPTER = "chapter";	//章节元素
	public static final String BOOK_CHAPTER_XML_ID   = "id";			//章节编号(属性)
	public static final String BOOK_CHAPTER_XML_TITLE = "title";		//章节标题
	public static final String BOOK_CHAPTER_XML_URL = "url";			//章节地址
	
	/***************************www.59to.com**************************/
	/**
	 * www.59to.com
	 */
	public static final String WEB_NAME_WUJIUWENXUE_COM = "www.59to.com";
	/**
	 * www.59to.com 章节<a>标签查询条件
	 * 用于解析章节名以及链接
	 */
	public static final String WEB_NAME_WUJIUWENXUE_COM_SELECT = ".www a";
	/**
	 * www.59.com 章节内容查询条件
	 */
	public static final String WEB_NAME_WUJIUWENXUE_COM_SELECT_CONTENT = "#content";
	/**
	 * www.59to.com 章节内容baseUrl
	 */
	public static final String BASE_URL_WUJIUWENXUE_COM = "http://www.59to.com/files/article/xiaoshuo/";
	
	/***************************www.xsduo.com**************************/
	public static final String WEB_NAME_XSDUO = "www.xsduo";
	public static final String WEB_NAME_XSDUO_SELECT = "#book_detail .clearfix li a";
	public static final String WEB_NAME_XSDUO_SELECT_CONTENT = "#contentTxt";
	
	
}
